# a = [1,2,3,4,True,'hello',['12']]
#
# b = list()
# print(type(a))
# print(type(b))
# print(a)

a = [1,2,3,4]
print(a[2])

#切片操作，很灵活
print(a[2:3])
print(a[1:])
print(a[:-1])